package com.dingwen.treasure.base.constant;

/**
 * 　项目域-常量
 * 　@author dingwen
 * 　@date 2022/5/14$
 *
 */
public final class GlobalConstant {
    /**
     * userId
     */
    public static final String TREASURE_HEAD_USER_ID = "TREASURE-HEAD-USERID";

    /**
     * 白名单userId值
     */
    public static final String TREASURE_HEAD_USER_ID_VALUE = "666666";


    /**
     * 微服务之间认证请求头
     */
    public static final String TREASURE_HEAD_TOKEN = "TREASURE-HEAD-TOKEN";

    /**
     * 微服务之间认证请求头类型
     */
    public static final String TREASURE_HEAD_TOKEN_TYPE = "TREASURE-HEAD-TOKEN_TYPE";

    /**
     * 微服务之间认证请求头值
     */
    public static final String TREASURE_HEAD_TOKEN_VALUE = "Bearer eyJhbGciOiJIUzI1NiJ9.eyJ0b2tlblR5cGUiOiJBUFAi" +
            "LCJ1c2VySWQiOiI5OTk5OSIsImFjY291bnQiOiIxMTIxMjEyMjEyIiwianRpIjoiOTk5OTkiLCJpc3MiOiJ0cmVhc3VyZSIsImlhd" +
            "CI6MTY2OTI4MjQ4Nywic3ViIjoiYXV0aCIsImV4cCI6MTY2OTI4Mjc4N30.WrQW58FrEOSyZV7vpFtHK_77yM4reETVmQmXTFvxJc";


    /**
     * KNIFE4J API 请求头
     */
    public static final String TREASURE_HEAD_KNIFE4J = "TREASURE-HEAD-KNIFE4J";

    /**
     * KNIFE4J API 请求头值
     */
    public static final String TREASURE_HEAD_KNIFE4J_VALUE = "TREASURE-INSIDE";

    /**
     * treasure 后台访问前缀
     */
    public static final String TREASURE_MANAGE_URL_PREFIX = "/manage";

    /**
     * treasure 用户访问前缀
     */
    public static final String TREASURE_USER_URL_PREFIX = "/user";



    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * www主域
     */
    public static final String WWW = "www.";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 时间格式化逻辑
     */
    public static final String DATA_FORMAT_CH = "yyyy-MM-dd HH:mm:ss";


    /**
     * 数据库访问异常
     */
    public static final String DATA_BASE_EXCEPTION_TIP = "数据访问异常";
}
